package aws.ws.services;

public class AWSImplProxy implements aws.ws.services.AWSImpl {
  private String _endpoint = null;
  private aws.ws.services.AWSImpl aWSImpl = null;
  
  public AWSImplProxy() {
    _initAWSImplProxy();
  }
  
  public AWSImplProxy(String endpoint) {
    _endpoint = endpoint;
    _initAWSImplProxy();
  }
  
  private void _initAWSImplProxy() {
    try {
      aWSImpl = (new aws.ws.services.AWSImplServiceLocator()).getAWSImplPort();
      if (aWSImpl != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)aWSImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)aWSImpl)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (aWSImpl != null)
      ((javax.xml.rpc.Stub)aWSImpl)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public aws.ws.services.AWSImpl getAWSImpl() {
    if (aWSImpl == null)
      _initAWSImplProxy();
    return aWSImpl;
  }
  
  public aws.ws.services.NumeroMovil getMovil(aws.ws.services.NombrePropietario arg0) throws java.rmi.RemoteException{
    if (aWSImpl == null)
      _initAWSImplProxy();
    return aWSImpl.getMovil(arg0);
  }
  
  
}